<?php /* Smarty version Smarty-3.1.10, created on 2017-01-30 12:22:43
         compiled from "E:\phpStudy\www\templates\adminpage\shop\shoptype.html" */ ?>
<?php /*%%SmartyHeaderCode:23360588ebf93696e43-53879910%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a4ed5a4304fe21f00e827d3df659f786d89e1fbb' => 
    array (
      0 => 'E:\\phpStudy\\www\\templates\\adminpage\\shop\\shoptype.html',
      1 => 1484235762,
      2 => 'file',
    ),
    '86dbfeab25bdedc8f1538bcd069cb1bea0ace329' => 
    array (
      0 => 'E:\\phpStudy\\www\\templates\\adminpage\\public\\admin.html',
      1 => 1485748819,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '23360588ebf93696e43-53879910',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'tempdir' => 0,
    'siteurl' => 0,
    'is_static' => 0,
    'admininfo' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.10',
  'unifunc' => 'content_588ebf93a27810_02554950',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_588ebf93a27810_02554950')) {function content_588ebf93a27810_02554950($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'E:\\phpStudy\\www\\lib\\Smarty\\libs\\plugins\\modifier.date_format.php';
if (!is_callable('smarty_function_load_data')) include 'E:\\phpStudy\\www\\lib\\Smarty\\libs\\plugins\\function.load_data.php';
?>﻿ <html xmlns="http://www.w3.org/1999/xhtml"><head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
<meta http-equiv="Content-Language" content="zh-CN"> 
<meta content="all" name="robots"> 
<meta name="description" content=""> 
<meta content="" name="keywords"> 
<title>后台管理中心 </title>  
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/css/admin1.css"> 
 <script src="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/js/jquery.js" type="text/javascript" language="javascript"></script>
 <script src="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/js/public.js" type="text/javascript" language="javascript"></script>
 <script src="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/js/allj.js" type="text/javascript" language="javascript"></script>
 <script type="text/javascript" language="javascript" src="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/js/artdialog/artDialog.js?skin=blue"></script>
 <script src="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/js/template.min.js" type="text/javascript" language="javascript"></script>

<script type="text/javascript" language="javascript" src="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/js/artdialog/plugins/iframeTools.js"></script>
 
<script>
	var menu = null;
	var siteurl = "<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
";
	var is_static ="<?php echo $_smarty_tpl->tpl_vars['is_static']->value;?>
";
	if(screen.width > 1359){
		
		$('.newtop').css('width',screen.width);
		$('.newmain').css('width',screen.width);
		$('.newfoot').css('width',screen.width);
	}  
	
</script> 
</head> 
<body> 
<div id="cat_zhe" class="cart_zhe" style="display:none;"></div>
<div id="cat_tj" class="cart_out_cat" style="display:none;"> 数据提交中..</div>
<div class="newtop">
	  <div class="newadddiv">
	  <div class="newlogo">
	  	  <div class="imglogo"><a href="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
" target="_blank"><img src="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/images/admin/logo.png"> </a></div>
	  </div>
	  <div class="newtopnav">
	  	 <ul>
	  	  <?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['tempdir']->value)."/public/admin_module.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
 
	  	 	<ul>
	  	
	  </div>
	</div>
</div> 
<div style="clear:both;"></div>
<div class="newmain">
	<!-- 提示导航-->
   <div class="top_nav">
	    <div class="nav2 datainfo">
	    	<?php echo smarty_modifier_date_format(time(),"%Y-%m-%d");?>
  
	    </div>
	    <div class="nav2 positioninfo" id="positionname2">
	    	网站首页
	    </div>
	    <div class="nav2 orderinfo">
	    	您有今天有0 个订单待审核
	    </div>
   </div>
   <!-- 主内容区-->
   <div class="newmain_all">
   	 <!-- 主内左区-->
   	 <div class="left_content">
   	 	   <!-- 主内左区用户信息-->
   	 	   <div class="userinfo">
   	 	   	   <div class="user_area">
   	 	   	   	      <div class="user_name">
   	 	   	   	      	<?php echo $_smarty_tpl->tpl_vars['admininfo']->value['username'];?>

   	 	   	   	      </div>
   	 	   	   	      <div class="content_url">
   	 	   	   	      	 <a href="<?php echo FUNC_function(array('type'=>'url','link'=>"/member/adminloginout"),$_smarty_tpl);?>
" class="out">退出</a> 
   	 	   	   	      	 <a onClick="modifypwd();" href="#">修改密码</a>
   	 	   	   	      </div>
   	 	   	  </div>
   	 	   	  <div class="now_name" id="nowactioninfo">
   	 	   	    	网站首页
   	 	   	    </div>
   	 	   </div>
   	 	   <!-- 主内左区导航条-->
   	 	    <div class="left_nav">
   	 	    	  <ul> 
   	 	    	  	
   	 	    	  	
   	 	    	  	 <?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['tempdir']->value)."/public/admin_menu.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

   	 	    	 
   	 	    	     <li style="text-align:center;"><a href="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
" style="color:#0076cf;" target="_blank">返回网站首页</a></li>
   	 	    	  </ul>
   	 	    </div>
   	 	    <div class="left_navend">
   	 	    </div>
   	 	    <!-- 主内左区天气预报-->
   	 	    <div class="weather" id="weatherinfo" style="display:none;">
   	 	    	 <div class="todayweacher">
   	 	    	      <div class="weacher_left">
   	 	    	      	 <div id="wtoday_img"> </div>
   	 	    	      	 <div><span id="wcity" style="padding-right:5px;"></span><span id="wqihou"></span></div>
   	 	    	      </div>
   	 	    	      <div class="weacher_right" id="wwendu">
   	 	    	      	 
   	 	    	      </div>	 
   	 	    	 </div>
   	 	    	 <div style="clear:both;">
   	 	    	 	   <div class="tom">
   	 	    	 	   	    <div id="tom_1" class="tom_img"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_day"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_wendu"></div>
   	 	    	 	   	
   	 	    	 	   	</div>
   	 	    	 	   <div class="tom">
   	 	    	 	   	    <div id="tom_tom" class="tom_img"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_tday"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_twendu"></div>
   	 	    	 	   	</div>
   	 	    	 </div>
   	 	    </div>
   	 	     
   	  </div>
   	  
 
 
  
 
 
 <div class="right_content">
	<div class="show_content_m">
   	        	 <div class="show_content_m_ti">
   	        	 	   <div class="showtop_t" id="positionname">店铺属性</div>
   	        	 </div>
   	        	 <div class="show_content_m_t2">
   	        	 	
   	        	 	
 <div style="width:auto;overflow-x:hidden;overflow-y:auto"> 
      	
      	<div class="search"> 
            <?php echo smarty_function_load_data(array('assign'=>"defaulttype",'table'=>"shoptype",'where'=>"id='0'",'type'=>"one"),$_smarty_tpl);?>
 
            <div class="search_content">  
            	    <input type="button" value="添加属性" class="button" onclick="addhtmlss(<?php echo json_encode($_smarty_tpl->tpl_vars['defaulttype']->value);?>
);">   
            </div> 
      	</div>
      	
      	
      	
           <div class="tags"> 
          <div id="tagscontent">

            <div id="con_one_1">

              <div class="table_td" style="margin-top:10px;">

              <form method="post" action="" onsubmit="return remind();" id="delform">

                  <table border="0" cellspacing="2" cellpadding="4" class="list" name="table" id="table" width="100%">

                    <thead>

                      <tr>

                        <th width="60px"><input type="checkbox" id="chkall" name="chkall" onclick="checkall()"></th>
                       <th align="center">ID</th>
                        <th align="center">属性名称</th>
                         <th align="center">所属对象</th>
                         <th align="center">值</th>
                        <th align="center">排序ID</th>
                        <th align="center">操作</th>

                      </tr>

                    </thead> 

                     <tbody>
                      <?php echo smarty_function_load_data(array('assign'=>"list",'table'=>"shoptype",'showpage'=>"true",'where'=>"parent_id='0'"),$_smarty_tpl);?>
 
                      <?php  $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['items']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['list']->value['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value){
$_smarty_tpl->tpl_vars['items']->_loop = true;
?> 
                      <tr class="s_out" onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff"> 
                        <td align="center" ><input type="checkbox" name="id[]" value="<?php echo $_smarty_tpl->tpl_vars['items']->value['id'];?>
"></td> 
                         <td align="center"><?php echo $_smarty_tpl->tpl_vars['items']->value['id'];?>
</td>  
                        <td align="center"><?php echo $_smarty_tpl->tpl_vars['items']->value['name'];?>
</td>  
                        <td align="center"><?php echo $_smarty_tpl->tpl_vars['shoptype']->value[$_smarty_tpl->tpl_vars['items']->value['cattype']];?>
</td>  
                        <td align="center">
                        	 <?php echo smarty_function_load_data(array('assign'=>"detlist",'table'=>"shoptype",'where'=>"parent_id='".((string)$_smarty_tpl->tpl_vars['items']->value['id'])."'",'limit'=>"10"),$_smarty_tpl);?>
 
                        	<?php  $_smarty_tpl->tpl_vars['itv'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['itv']->_loop = false;
 $_smarty_tpl->tpl_vars['mykey'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['detlist']->value['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['itv']->key => $_smarty_tpl->tpl_vars['itv']->value){
$_smarty_tpl->tpl_vars['itv']->_loop = true;
 $_smarty_tpl->tpl_vars['mykey']->value = $_smarty_tpl->tpl_vars['itv']->key;
?>
                        	 <?php if ($_smarty_tpl->tpl_vars['mykey']->value<5){?> 
                        	     <?php if ($_smarty_tpl->tpl_vars['items']->value['type']=='img'){?>
                        	      <img src="<?php echo $_smarty_tpl->tpl_vars['itv']->value['name'];?>
" width=30px>
                        	      <?php }else{ ?>
                        	      <?php echo $_smarty_tpl->tpl_vars['itv']->value['name'];?>

                        	      <?php }?>
                        	 <?php }?>
                          <?php } ?>
                          <?php $_smarty_tpl->createLocalArrayVariable('items', null, 0);
$_smarty_tpl->tpl_vars['items']->value['det'] = $_smarty_tpl->tpl_vars['detlist']->value['list'];?>
                        	<a href="#" onclick='setattr(<?php echo json_encode($_smarty_tpl->tpl_vars['items']->value);?>
);'>设置</a>
                        	</td>  
                        <td align="center"><?php echo $_smarty_tpl->tpl_vars['items']->value['orderid'];?>
</td>  
                        <td align="center"><a href="#" onclick='addhtml(<?php echo json_encode($_smarty_tpl->tpl_vars['items']->value);?>
);' ><img src="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/images/admin/edit.jpg"></a> 
                        	<a onclick="return remind(this);" href="<?php echo FUNC_function(array('type'=>'url','link'=>"/adminpage/shop/module/delshoptype/id/".((string)$_smarty_tpl->tpl_vars['items']->value['id'])."/datatype/json"),$_smarty_tpl);?>
"><img src="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/images/admin/del.jpg"></a></td> 
                      </tr> 
                       <?php } ?> 

                    </tbody> 

                  </table>

                <div class="blank20"></div> 

                </form>

                <div class="page_newc">
                 	     <div class="select_page">
                 	     	   	<a href="#" onclick="checkword(true);">全选</a>/<a href="#" onclick="checkword(false);">取消</a>
                 	         <a onclick="return remindall(this);" href="<?php echo FUNC_function(array('type'=>'url','link'=>"/adminpage/shop/module/delshoptype/datatype/json"),$_smarty_tpl);?>
" class="delurl">删除</a> 
                 	     	</div>
                       <div class="show_page"><ul><?php echo $_smarty_tpl->tpl_vars['list']->value['pagecontent'];?>
</ul></div>
                 </div>
                <div class="blank20"></div>

              </div>

            </div>

          </div>

        </div>

        
  </div>
 
</div> 




<script id="addtype" type="text/html">
<form method="post" name="form1" action="<?php echo FUNC_function(array('type'=>'url','link'=>"/adminpage/shop/module/saveshoptype/datatype/json"),$_smarty_tpl);?>
" onsubmit="return subform('',this);">
  <table width=300px> 
  	<tr><td height=25px width=30%<?php ?>>属性名称:</td><td width=70%<?php ?>><input type="text" name="name" value="<^%=name%^>"></td></tr>
  	<tr><td height=25px width=30%<?php ?>>数据类型:</td><td width=70%<?php ?>><select name="type">
  		                                                        <option value="checkbox" <^% if(type == 'checkbox'){%^>selected<^%}%^>>多选</option>
  		                                                        <option value="radio" <^% if(type == 'radio'){%^>selected<^%}%^>>单选</option>
  		                                                        <option value="input" <^% if(type == 'input'){%^>selected<^%}%^>>输入框</option>
  		                                                        <option value="img" <^% if(type == 'img'){%^>selected<^%}%^>>图片</option> 
  		                                                        </select></td></tr>
  	<tr>
  		<td height=25px width=30%<?php ?>>对应对象:</td>
  		<td width=70%<?php ?>>
  			<^% for(var i=0;i<typearr.length;i++) {%^>
  			<input type="radio" name="cattype" value="<^%=i%^>" <^% if(cattype == i){%^>checked<^%}%^>>  <^%=typearr[i]%^> 
  			<^%}%^>
  		 </td> 
    </tr>
  	<tr><td height=25px width=30%<?php ?>>是否搜索:</td>
  		<td width=70%<?php ?>><input type="radio" name="is_search" value="0" <^% if(is_search == 0){%^>checked<^%}%^>>否<input type="radio" name="is_search" value="1" <^% if(is_search == 1){%^>checked<^%}%^>>是</td> </tr>
  	<tr><td height=25px width=30%<?php ?>>展示列表中:</td>
  		<td width=70%<?php ?>><input type="radio" name="is_main" value="0" <^% if(is_main == 0){%^>checked<^%}%^>>否<input type="radio" name="is_main" value="1" <^% if(is_main == 1){%^>checked<^%}%^>>是</td> </tr>
  	<tr><td height=25px width=30%<?php ?>>设置位置:</td>
  		<td width=70%<?php ?>><input type="radio" name="is_admin" value="0" <^% if(is_admin == 0){%^>checked<^%}%^>>前台<input type="radio" name="is_admin" value="1" <^% if(is_admin == 1){%^>checked<^%}%^>>后台</td> </tr>		
  	<tr><td height=25px width=30%<?php ?>>简单说明:</td>
  		<td width=70%<?php ?>><textarea name="instro"><^%=instro%^></textarea></tr>		 
  	<tr><td height=25px width=30%<?php ?>>排序ID:</td><td width=70%<?php ?>><input type="text" name="orderid" value="<^%=orderid%^>"></td></tr>
  	<tr><td height=25px>&nbsp;</td> <input type="hidden" name="id" value="<^%=id%^>"> <td><input type="submit" value="提交保存" class="button"></td></tr>
  </table> 
</form>
</script>
<script id="addtypess" type="text/html">
<form method="post" name="form1" action="<?php echo FUNC_function(array('type'=>'url','link'=>"/adminpage/shop/module/saveshoptype/datatype/json"),$_smarty_tpl);?>
" onsubmit="return subform('',this);">
  <table width=300px> 
  	<tr><td height=25px width=30%<?php ?>>属性名称:</td><td width=70%<?php ?>><input type="text" name="name" value="<^%=name%^>"></td></tr>
  	<tr><td height=25px width=30%<?php ?>>数据类型:</td><td width=70%<?php ?>><select name="type">
  		                                                        <option value="checkbox" <^% if(type == 'checkbox'){%^>selected<^%}%^>>多选</option>
  		                                                        <option value="radio" <^% if(type == 'radio'){%^>selected<^%}%^>>单选</option>
  		                                                        <option value="input" <^% if(type == 'input'){%^>selected<^%}%^>>输入框</option>
  		                                                        <option value="img" <^% if(type == 'img'){%^>selected<^%}%^>>图片</option> 
  		                                                        </select></td></tr>
  	<tr>
  		<td height=25px width=30%<?php ?>>对应对象:</td>
  		<td width=70%<?php ?>>
  		<?php  $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['items']->_loop = false;
 $_smarty_tpl->tpl_vars['mykey'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['shoptype']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value){
$_smarty_tpl->tpl_vars['items']->_loop = true;
 $_smarty_tpl->tpl_vars['mykey']->value = $_smarty_tpl->tpl_vars['items']->key;
?>
  			<input type="radio" name="cattype" value="<?php echo $_smarty_tpl->tpl_vars['mykey']->value;?>
" >  <?php echo $_smarty_tpl->tpl_vars['items']->value;?>

  		<?php } ?>
  		 </td> 
    </tr>
  	<tr><td height=25px width=30%<?php ?>>是否搜索:</td>
  		<td width=70%<?php ?>><input type="radio" name="is_search" value="0" <^% if(is_search == 0){%^>checked<^%}%^>>否<input type="radio" name="is_search" value="1" <^% if(is_search == 1){%^>checked<^%}%^>>是</td> </tr>
  	<tr><td height=25px width=30%<?php ?>>展示列表中:</td>
  		<td width=70%<?php ?>><input type="radio" name="is_main" value="0" <^% if(is_main == 0){%^>checked<^%}%^>>否<input type="radio" name="is_main" value="1" <^% if(is_main == 1){%^>checked<^%}%^>>是</td> </tr>
  	<tr><td height=25px width=30%<?php ?>>设置位置:</td>
  		<td width=70%<?php ?>><input type="radio" name="is_admin" value="0" <^% if(is_admin == 0){%^>checked<^%}%^>>前台<input type="radio" name="is_admin" value="1" <^% if(is_admin == 1){%^>checked<^%}%^>>后台</td> </tr>		
  	<tr><td height=25px width=30%<?php ?>>简单说明:</td>
  		<td width=70%<?php ?>><textarea name="instro"><^%=instro%^></textarea></tr>		 
  	<tr><td height=25px width=30%<?php ?>>排序ID:</td><td width=70%<?php ?>><input type="text" name="orderid" value="<^%=orderid%^>"></td></tr>
  	<tr><td height=25px>&nbsp;</td> <input type="hidden" name="id" value="<^%=id%^>"> <td><input type="submit" value="提交保存" class="button"></td></tr>
  </table> 
</form>
</script>
<script id="adddet" type="text/html"> 
	<form method="post" name="form1" action="<?php echo FUNC_function(array('type'=>'url','link'=>"/adminpage/shop/module/saveshopdettype/datatype/json"),$_smarty_tpl);?>
" onsubmit="return subform('',this);">
	<table width=300px id="dovalueid"> 
	   <tr><th height=25px width=70%<?php ?>>数据值</th><th width=30%<?php ?>>操作</th></tr>
	   	
	   	
	   <^% if(det.length > 0){%^> 
	   <^% for(var i=0;i< det.length;i++){%^> 
	         <^% if(type == "img"){%^> 
	           <tr class="shujudata"><td height=25px width=70%<?php ?>><img src="<^%=det[i].name%^>" width=15px height=15px class="imgshow"   ><input type="hidden" name="ids[]" value="<^%=det[i].id%^>"><input type="hidden"   name="name[]" value="<^%=det[i].name%^>"><input type="text" name="instro[]" value="<^%=det[i].instro%^>"><span onclick="uploads(this);" style="font-size:12px;">上传</span></td><td width=30%<?php ?>><a href="#" onclick="delhang(this);">删除</a></td></tr>
	        <^%}else{%^>   
	           <tr class="shujudata"><td height=25px width=70%<?php ?>><input type="hidden" name="ids[]" value="<^%=det[i].id%^>"><input type="text" name="name[]" value="<^%=det[i].name%^>"><input type="hidden" name="instro[]" value="<^%=det[i].instro%^>"></td><td width=30%<?php ?>><a href="#" onclick="delhang(this);">删除</a></td></tr>
	        <^%}%^> 
	   <^%}%^> 
	   <^%}%^> 
	   <tr><td colspan="3"><input type="button" value="添加一行" class="button" onclick="addhang(this,'<^%=type%^>');"></td></tr>
     <tr><td height=25px>&nbsp;</td> <input type="hidden" name="cattype" value="<^%=cattype%^>"><input type="hidden" name="id" value="<^%=id%^>"> <td colspan="2"><input type="submit" value="提交保存" class="button"></td></tr>
     
  </table>		
	</form>
</script>
<script>
	var typearr = <?php echo json_encode($_smarty_tpl->tpl_vars['shoptype']->value);?>
;
	function addhtml(datas){  
		datas.typearr  = typearr;
	  var html = template.render('addtype', datas);  
	  var dialog =  art.dialog({
	 	   	id:'coslid',
        title:'',
        content: html
    });
	}
	function addhtmlss(datas){
		 var html = template.render('addtypess', datas);  
	  var dialog =  art.dialog({
	 	   	id:'coslid',
        title:'',
        content: html
    });
	}
	function setattr(datas){
	  var html = template.render('adddet', datas);  
	  var dialog =  art.dialog({
	 	   	id:'coslids',
        title:'设置'+datas.name+'值',
        content: html
    });
	}
	function addhang(obj,types){
	  if(types == 'input'){ 
	     if($('#dovalueid').find('.shujudata').length > 0){
	     	 alert('已存在默认值');
	     	 return false;
	    }
	    
	  }
	   var html = '';
	  if(types == 'img'){
	  	 html= '<tr class="shujudata"><td height=25px width=70%<?php ?>><img src="" width=15px height=15px class="imgshow"  style="display:none;" ><input type="hidden" name="ids[]" value=""><input type="hidden"   name="name[]" value=""><input type="text" name="instro[]" value=""><span onclick="uploads(this);" style="font-size:12px;">上传</span></td><td width=30%<?php ?>><a href="#" onclick="delhang(this);">delete</a></td></tr>';
	  }else{
		    html= '<tr class="shujudata"><td height=25px width=70%<?php ?>><input type="hidden" name="ids[]" value=""><input type="text" name="name[]" value=""><input type="hidden" name="instro[]" value=""></td><td width=30%<?php ?>><a href="#" onclick="delhang(this);">delete</a></td></tr>';
		}
	  $(obj).parent().parent().before(html);
	}
	function delhang(obj){
	  $(obj).parent().parent().remove();
	}
	</script> 
<script>
	var dialogs ;
	var doimgid;
 function uploads(obj){  
 	  var doobj = $(obj).parent().parent();
 	  doimgid = $('#dovalueid').find('span').index($(obj));
 	   
 	  dialogs = art.dialog.open('<?php echo FUNC_function(array('type'=>'url','link'=>"/adminpage/other/module/adminupload/func/uploadsucess"),$_smarty_tpl);?>
');
 	  dialogs.title('上传图片'); 
 }
 function uploadsucess(flag,obj,linkurl){
 	 if(flag == true){
 		alert(linkurl);
		dialogs.close();
		uploads();
 	 }else{ 
 		dialogs.close();
 	 $('#dovalueid').find('.imgshow').eq(doimgid).attr('src',linkurl);
 	$('#dovalueid').find("input[name='name[]']").eq(doimgid).val(linkurl);
 	 $('#dovalueid').find('.imgshow').eq(doimgid).show();
   }
 } 
</script>    
<!--newmain 结束-->

   	        	 	
               <div class="show_content_m_t3">
   	        	 </div>
   	        	 
   	       </div>
   	       <!-- show_content_m结束-->


   	  </div>
   	  <!-- right_content 结束-->
   	  
   </div>
   <!-- newmain_all 结束-->
</div>	
	
<!--newmain 结束-->
















<div style="clear:both;"></div>
<div class="newfoot">
	
	  版权所有@顶级源码论坛 www.Mx800.Com
</div>	
<script>
$(function(){ 
 $('.show_page a').wrap('<li></li>');
 $('.show_page').find('.current').eq(0).parent().css({'background':'#f60'}); 
});
   function limitalert(){
		diaerror("您暂无权限设置,如有疑问请联系QQ：316458278  网址：www.Mx800.com");
	}
</script>
</body>
</html>





<?php }} ?>